/** 
 * 设置列 
 *  
 * @return 
 */  
function getColumns() {  
    return [[  
             {field:'id', title:"编号", checkbox:true},  
             {field:'dictValue', title:"字典编号", halign:'center', align:'center',sortable:true, width:300},  
             {field:'dictText', title:"字典值", halign:'center', align:'center', sortable:true, width:400},  
             {field:'dictType', title:"字典类型", halign:'center', align:'center',sortable:true, width:400}
             ]];  
}  
  
  
/** 
 * 初始化页面 
 */  
jQuery(function() {  
    var gridParam = {  
            rownumbers:true,  
            loadMsg : "数据加载中",  
            pagination : true,  
            multiSort : true,  
            pageSize :  10,  
            pageList : [ 2, 5, 10, 20, 50, 100 ],  
            striped : true,  
            columns : getColumns(),  
            //queryParams : queryParams,  
            url:basePath+"/goodsType/dictInit.do",  
            collapsible : true,  
            singleSelect : true,  
            idField : "id" // 支持跨页选择  
        };  
          
        $('#dictInfo').datagrid(gridParam);  
        $('#dictInfo').datagrid("getPager").pagination( {  
            pageSize : 10,  
            displayMsg : '当前数据范围 {from} 到 {to} ，共 {total} 条记录',  
            beforePageText : '当前',  
            afterPageText : '  ,共 {pages}页'  
        });  
});  